Contents | Index | < Browse | Browse >

LETTERtanULETTER Tangent function.

Overview
#include <math.h>;

r = tan(x);

double r;
double x;

Portability
ANSI

Description
Returns the tangent of the double-precision floating-point number "x".

Note
Of course all trigonometric functions require the angle be expressed in radians. Pass the angle "w" expressed in degrees to
x = PI/180 * w
to receive its equivalent in radians in "x".

Returns
The tangent as a double-precision floating-point number.

See also
atan , sin , cos